package com.my.test.jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DBConnection {

	static{
		try {
			Class.forName("");
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
	}
	public static Connection getCon(String url,String username,String pwd){
		Connection con = null;
		try {
			con = DriverManager.getConnection(url , username , pwd);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return con;
	}
}
